#include "stdafx.h"
#include "ParamCodeInfoPos.h"

static CParamCodeInfoPos defaultProp;
CParamCodeInfoPos& CParamCodeInfoPos::defaultValue()
{
	if (!defaultProp.m_initialized)
	{
		defaultProp.m_InfoPos = CPoint(449, 47);
		defaultProp.m_ImagePos = CPoint(449, 147);
		defaultProp.m_initialized = true;
	}
	return defaultProp;
}

void CParamCodeInfoPos::readINI(CINIOperater *oper)
{
	CParamCodeInfoPos def = CParamCodeInfoPos::defaultValue();
	m_InfoPos = oper->GetPoint(section, L"Position", def.m_InfoPos);
	m_ImagePos = oper->GetPoint(section, L"ImagePos", def.m_ImagePos);
}

void CParamCodeInfoPos::writeINI(CINIOperater *oper)
{
	oper->WritePoint(section, L"Position", &m_InfoPos);
	oper->WritePoint(section, L"ImagePos", &m_ImagePos);
}


